/**
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '~/styles/variables';

.welcomeScreen {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  width: 100%;

  .greeting {
    margin-left: auto;
    margin-right: auto;
    max-width: 69.8rem;

    @media screen and (max-width: $medium) {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  p,
  span {
    color: $realWhite;
    font-family: $font_mono;
    font-size: 1.5rem;
    line-height: 2.25rem;
  }

  .char {
    opacity: 0;
  }

  .hi {
    margin-bottom: 3rem;
  }

  .bye {
    margin-top: 3rem;
  }

  .actions {
    @media screen and (max-width: $medium) {
      padding-bottom: 4rem;
    }
    .nextButton {
      margin-left: auto;
      margin-right: auto;
      text-transform: uppercase;
    }
  }

  .signature {
    margin: 25px 0;
    width: 17.4rem;

    svg {
      display: block;
      height: auto;
      width: 100%;
    }
  }

  .steps {
    display: flex;
    gap: 10%;
    justify-content: space-between;

    @media screen and (max-width: $medium) {
      flex-direction: column;
    }

    img {
      border-radius: 0.8rem;
    }
  }

  .screen2 {
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 92rem;

    @media screen and (max-width: 960px) {
      padding-left: 6rem;
      padding-right: 6rem;
      padding-top: 5rem;
    }

    .heading {
      display: inline-block;
      font-size: 2rem;
      margin-bottom: 3.6rem;
    }

    .higItem {
      @media screen and (max-width: $medium) {
        margin-top: 4rem;
      }

      .index {
        font-size: 2rem;
      }

      .title {
        font-size: 1.5rem;
        margin-bottom: 2.4rem;
        margin-top: 0.4rem;
      }

      span {
        display: block;
      }
    }
  }

  // Animation
  .screen2 {
    $stagger: 0.08;

    &.animate .fade {
      opacity: 1;
      transform: translate(0, 0);
    }

    .fade {
      opacity: 0;
      transform: translate(0, 1.2rem);
      transition: all 0.32s ease-in-out;
    }

    li:nth-child(2) {
      .fade1 {
        transition-delay: #{$stagger}s;
      }
      .fade2 {
        transition-delay: #{$stagger * 2}s;
      }
      .fade3 {
        transition-delay: #{$stagger * 3}s;
      }
    }

    li:nth-child(3) {
      .fade1 {
        transition-delay: #{$stagger * 2}s;
      }
      .fade2 {
        transition-delay: #{$stagger * 3}s;
      }
      .fade3 {
        transition-delay: #{$stagger * 4}s;
      }
    }
  }
}
